import Vue from "vue"
// element-ui组件按需引入
import {
    Button,
    Row,
    Col,
    Form,
    FormItem,
    Input,
    Container,
    Aside,
    Header,
    Main,
    Menu,
    Submenu,
    MenuItem,
    MenuItemGroup,
    Avatar,
    Dropdown,
    DropdownItem,
    DropdownMenu,
    Card,
    Progress,
    Timeline,
    TimelineItem,
    Table,
    TableColumn,
    Pagination,
    Dialog,
    Select,
    Option,
    TimePicker,
    MessageBox,
    Message,
    DatePicker,
    Tag,
    InputNumber,
    Tabs,
    TabPane,
    Drawer,
    Radio,
    Cascader,
    Descriptions,
    DescriptionsItem,
    Loading,
    Switch,
    RadioGroup
}from 'element-ui'
// fade/zoom 等
import 'element-ui/lib/theme-chalk/base.css';
// collapse 展开折叠
import CollapseTransition from 'element-ui/lib/transitions/collapse-transition';
// 使用引入的模块
Vue.use(Button)
Vue.use(Row)
Vue.use(Col)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Container)
Vue.use(Aside)
Vue.use(Header)
Vue.use(Main)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)
Vue.use(Avatar)
Vue.use(Dropdown)
Vue.use(DropdownItem)
Vue.use(DropdownMenu)
Vue.use(Card)
Vue.use(Progress)
Vue.use(Timeline)
Vue.use(TimelineItem)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Pagination)
Vue.use(Dialog)
Vue.use(Select)
Vue.use(Option)
Vue.use(TimePicker)
Vue.use(DatePicker)
Vue.use(Tag)
Vue.use(InputNumber)
Vue.use(Tabs)
Vue.use(TabPane)
Vue.use(Drawer)
Vue.use(Radio)
Vue.use(Cascader)
Vue.use(Descriptions)
Vue.use(DescriptionsItem)
Vue.use(Loading)
Vue.use(Switch)
Vue.use(RadioGroup)
// 挂载message
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$alert = MessageBox.alert
// 动画引入
Vue.component(CollapseTransition.name, CollapseTransition)